var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = null;
var data = [];

for(var i = 0; i <= 360; i++) {
	var t = i / 180 * Math.PI;
	var r = Math.sin(2 * t) * Math.cos(2 * t);
	data.push([r, i]);
}

option = {
	title: {

	},
	legend: {

	},
	polar: {
		center: ['50%', '54%']
	},
	tooltip: {
		trigger: 'axis',
		axisPointer: {
			type: 'cross'
		}
	},
	angleAxis: {
		type: 'value',
		startAngle: 0
	},
	radiusAxis: {
		min: 0
	},
	series: [{
		coordinateSystem: 'polar',
		name: 'line',
		type: 'line',
		showSymbol: false,
		data: data
	}],
	animationDuration: 2000
};;
setTimeout("X();",500);
function X(){
	if(option && typeof option === "object") {
		myChart.setOption(option, true);
	}
}
